<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnSourceIdInStepWorkflowTable extends AbstractMigration
{
    public function up()
    {
        $this->table("step_workflow")
            ->addColumn('source_id', 'integer', ['limit' => 11, 'null' => false, 'signed' => false, 'default' => 0, 'comment' => '来源工序流id'])
            ->save();
    }

    public function down()
    {
        $this->table('step_workflow')
            ->removeColumn('source_id')
            ->save();
    }
}
